<?php
/**
 * DecoratePageUrl helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_DecoratePageUrl
{
    public function decoratePageUrl($author, $date)
    {
        $url = '';
        if (!empty($author)) {
            $url .= '/author/' . $author;
        }
        
        if (!empty($date)) {
            $url .= '/date/' . $date;
        }
        return $url;
    }
}
